export default {
  // Global page headers: https://go.nuxtjs.dev/config-head
  head: {
    title: '万骏驾考',
    htmlAttrs: {
      lang: 'en'
    },
    meta: [{
        charset: 'utf-8'
      },
      {
        name: 'viewport',
        content: 'width=device-width, initial-scale=1'
      },
      {
        hid: 'description',
        name: 'description',
        content: ''
      },
      {
        name: 'format-detection',
        content: 'telephone=no'
      }
    ],
    script:[
      {src:"https://map.qq.com/api/js?v=2.exp&key=YXSBZ-T5RWJ-375FU-FBPN7-QHVQK-BYB7L"},
    ],
    link: [{
      rel: 'icon',
      type: 'image/x-icon',
      href: '/favicon.ico'
    }, ],
    
  },
  env: {
    BASE_URL: process.env.BASE_URL,
    NODE_ENV: process.env.NODE_ENV
  },

  // Global CSS: https://go.nuxtjs.dev/config-css
  css: [{
      src: '~assets/css/normal.scss',
      lang: 'scss'
    },
    {
      src: "swiper/css/swiper.css"
    },
    'element-ui/lib/theme-chalk/index.css', // 引入全局样式
    {
      src: '~assets/css/element-variables.scss',
      lang: 'scss'
    },
    'video.js/dist/video-js.css',

  ],

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  plugins: [
    { src: '~/plugins/core', ssr: false },
    {
      src: '~plugins/ElementUI',
      ssr: false,
    },
    {
      src: '~/plugins/getcity',
      ssr: false
    },
    {
      src: "~/plugins/vue-swiper.js",
      ssr: false
    },
    {
      src: '~/plugins/storeCache',
      ssr: false
    },
   
    {
      src: '~/plugins/vue-video.js',
      ssr: false
    },
    {
      src: "~/plugins/route.js",
      ssr: false
    },
    { src: '~/plugins/vant', ssr: false },
    { src: '~/plugins/poly', ssr: false },
    { src: '~/plugins/ie', ssr: false },
  ],

  // Auto import components: https://go.nuxtjs.dev/config-components
  components: false,

  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  buildModules: [],

  // Modules: https://go.nuxtjs.dev/config-modules
  modules: [
    '@nuxtjs/style-resources',
  ],
    router:{
        middleware:'axiosMiddle'
    },
    
  // Build Configuration: https://go.nuxtjs.dev/config-build
  build: {
    transpile: [/^element-ui/, 'installComponents'],
    vendor: ['element-ui'], // 防止重复重复打包
  
  },
  mode:'spa'
}
